/*
 * Copyright 2010-2012 Susanta Tewari. <freecode4susant@users.sourceforge.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
* ComJLHoodIModel.java
*
* Created on December 29, 2007, 10:41 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
 */
package gui.genomemap.inputModel;

import genomemap.data.RFLPImputation;

import gui.genomemap.inputModel.optOperations.ComJLHoodOptionalOperModel;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

/**
 * @author stewari1
 */
@Entity
public class ComJLHoodIModel extends InputModel implements java.io.Serializable {

    /** Field description */
    private int gIterationLimit = 150;

    /**
     * convergence for the genetic part
     */
    private double gConvgEpsilon = 1.0E-4;

    /** Field description */
    @OneToOne(cascade = CascadeType.ALL)
    private RFLPImputation rflpImputation = new RFLPImputation();

    /** Field description */
    @OneToOne(cascade = CascadeType.ALL)
    private ComJLHoodOptionalOperModel optionalOperModel = new ComJLHoodOptionalOperModel();

    /** Creates a new instance of ComJLHoodIModel */
    public ComJLHoodIModel() {}

    public int getGIterationLimit() {
        return gIterationLimit;
    }

    public void setGIterationLimit(int iterationLimit) {
        this.gIterationLimit = iterationLimit;
    }

    public double getGConvgEpsilon() {
        return gConvgEpsilon;
    }

    public void setGConvgEpsilon(double gConvgEpsilon) {
        this.gConvgEpsilon = gConvgEpsilon;
    }

    public ComJLHoodOptionalOperModel getOptionalOperModel() {
        return optionalOperModel;
    }

    public void setOptionalOperModel(ComJLHoodOptionalOperModel optionalOperModel) {
        this.optionalOperModel = optionalOperModel;
    }

    public RFLPImputation getRflpImputation() {
        return rflpImputation;
    }

    public void setRflpImputation(RFLPImputation rflpImputation) {
        this.rflpImputation = rflpImputation;
    }
}
